/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.text.InputFilter;
import android.text.InputFilter.LengthFilter;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.ScrollView;
import android.widget.TextView;

public class aq {
    private Activity a;
    private bi b;
    private n c;
    private RelativeLayout d;
    private RelativeLayout e;
    private EditText f;
    private EditText g;
    private EditText h;
    private EditText i;
    private ai j;
    private ListView k;
    private int l = 7;
    private String m;

    public aq(Activity paramActivity, String paramString, n paramn) {
        this.a = paramActivity;
        this.c = paramn;
        this.b = bi.a(this.a);
        this.m = paramString;
        paramn = cz.a((paramActivity = this).a, 3.0F);
        int i1;
        if (cy.a(paramActivity.a) > cy.b(paramActivity.a))
            i1 = cy.b(paramActivity.a) / 12;
        else
            i1 = cy.a(paramActivity.a) / 12;
        int i2 = cz.a(paramActivity.a, 8.0F);
        int i3 = cz.a(paramActivity.a, 12.0F);
        paramActivity.d = new RelativeLayout(paramActivity.a);
        LinearLayout localLinearLayout;
        (localLinearLayout = new LinearLayout(paramActivity.a)).setOrientation(1);
        Object localObject2 = new TextView(paramActivity.a);
        paramActivity.b.a((View) localObject2, "bg_titlebtn_nor.9.png", "bg_titlebtn_press.9.png",
                "bg_titlebtn_nor.9.png");
        ((TextView) localObject2).setTextColor(-1);
        ((TextView) localObject2).setTextSize(13.0F);
        ((TextView) localObject2).setGravity(17);
        ((TextView) localObject2).setText(a.a(b.p));
        Object localObject3 = new RelativeLayout.LayoutParams(cz.a(paramActivity.a, 55.5F),
                cz.a(paramActivity.a, 32.5F));
        ((TextView) localObject2).setLayoutParams((ViewGroup.LayoutParams) localObject3);
        (localObject2 = new af(paramActivity.a, (View) localObject2)).setId(cz.a());
        ((af) localObject2).a(new g(paramActivity));
        localLinearLayout.addView((View) localObject2, new LinearLayout.LayoutParams(-1, cz.a(paramActivity.a, 48.5F)));
        (localObject2 = new ImageView(paramActivity.a)).setScaleType(ImageView.ScaleType.FIT_XY);
        ((ImageView) localObject2).setImageDrawable(paramActivity.b.a("img_titleshade.png"));
        localLinearLayout.addView((View) localObject2, new LinearLayout.LayoutParams(-1, -2));
        (localObject2 = new LinearLayout(paramActivity.a)).setOrientation(1);
        ((LinearLayout) localObject2).setPadding(i1, i1, i1, i1);
        (localObject1 = new TextView(paramActivity.a)).setSingleLine();
        ((TextView) localObject1).setTextColor(-13421773);
        ((TextView) localObject1).setTextSize(16.0F);
        ((TextView) localObject1).setText(a.a(b.S) + paramString);
        ((LinearLayout) localObject2).addView((View) localObject1);
        paramActivity.f = new EditText(paramActivity.a);
        paramActivity.f.setSingleLine();
        paramActivity.f.setTextColor(-13421773);
        paramActivity.f.setTextSize(14.0F);
        paramActivity.f.setHintTextColor(-7829368);
        paramActivity.f.setPadding(paramn, paramn, paramn, paramn);
        paramActivity.f.setBackgroundDrawable(paramActivity.b.a("bg_edt.9.png"));
        paramActivity.f.setHint(a.a(b.ak));
        paramActivity.f.setInputType(129);
        (paramString = new LinearLayout.LayoutParams(-1, cz.a(paramActivity.a, 33.5F))).topMargin = i2;
        ((LinearLayout) localObject2).addView(paramActivity.f, paramString);
        paramActivity.g = new EditText(paramActivity.a);
        paramActivity.g.setSingleLine();
        paramActivity.g.setTextColor(-13421773);
        paramActivity.g.setTextSize(14.0F);
        paramActivity.g.setFilters(new InputFilter[] { new InputFilter.LengthFilter(18) });
        paramActivity.g.setHintTextColor(-7829368);
        paramActivity.g.setPadding(paramn, paramn, paramn, paramn);
        paramActivity.g.setBackgroundDrawable(paramActivity.b.a("bg_edt.9.png"));
        paramActivity.g.setHint(a.a(b.al));
        paramActivity.g.setInputType(129);
        (paramString = new LinearLayout.LayoutParams(-1, cz.a(paramActivity.a, 33.5F))).topMargin = i2;
        ((LinearLayout) localObject2).addView(paramActivity.g, paramString);
        paramActivity.h = new EditText(paramActivity.a);
        paramActivity.h.setSingleLine();
        paramActivity.h.setTextColor(-13421773);
        paramActivity.h.setTextSize(14.0F);
        paramActivity.h.setFilters(new InputFilter[] { new InputFilter.LengthFilter(18) });
        paramActivity.h.setHintTextColor(-7829368);
        paramActivity.h.setPadding(paramn, paramn, paramn, paramn);
        paramActivity.h.setBackgroundDrawable(paramActivity.b.a("bg_edt.9.png"));
        paramActivity.h.setHint(a.a(b.am));
        paramActivity.h.setInputType(129);
        (paramString = new LinearLayout.LayoutParams(-1, cz.a(paramActivity.a, 33.5F))).topMargin = i2;
        ((LinearLayout) localObject2).addView(paramActivity.h, paramString);
        (paramString = new TextView(paramActivity.a)).setTextColor(-7829368);
        paramString.setTextSize(12.0F);
        paramString.setText(a.a(b.ao));
        (localObject1 = new LinearLayout.LayoutParams(-1, -1)).topMargin = i2;
        ((LinearLayout) localObject2).addView(paramString, (ViewGroup.LayoutParams) localObject1);
        (paramString = new TextView(paramActivity.a)).setTextColor(-13421773);
        paramString.setTextSize(16.0F);
        paramString.setText(a.a(b.ar));
        (localObject1 = new LinearLayout.LayoutParams(-1, -1)).topMargin = i3;
        ((LinearLayout) localObject2).addView(paramString, (ViewGroup.LayoutParams) localObject1);
        paramString = paramActivity.b.a("bg_spriner_press.9.png");
        Object localObject1 = paramActivity.b.a("bg_spriner_nor.9.png");
        (localObject3 = new RelativeLayout(paramActivity.a)).setBackgroundDrawable((Drawable) localObject1);
        ((RelativeLayout) localObject3).setPadding(paramn, paramn, paramn, paramn);
        ((RelativeLayout) localObject3).setFocusable(true);
        ((RelativeLayout) localObject3).setFocusableInTouchMode(true);
        ((RelativeLayout) localObject3).setOnTouchListener(new h(paramActivity, paramString, (Drawable) localObject1));
        (paramString = new ImageView(paramActivity.a)).setId(cz.a());
        paramActivity.b.a(paramString, "img_arrow.png");
        (localObject1 = new RelativeLayout.LayoutParams(cz.a(paramActivity.a, 12.5F), cz.a(paramActivity.a, 7.5F)))
                .setMargins(paramn, paramn, paramn, paramn);
        ((RelativeLayout.LayoutParams) localObject1).addRule(11, -1);
        ((RelativeLayout.LayoutParams) localObject1).addRule(15, -1);
        ((RelativeLayout) localObject3).addView(paramString, (ViewGroup.LayoutParams) localObject1);
        paramActivity.j = new ai(paramActivity.a);
        paramActivity.j.setTextSize(14.0F);
        paramActivity.j.setTextColor(-13421773);
        paramActivity.j.a(z.b);
        paramActivity.j.setText(z.b[0]);
        (localObject1 = new RelativeLayout.LayoutParams(-1, -2)).addRule(15, -1);
        ((RelativeLayout.LayoutParams) localObject1).addRule(0, paramString.getId());
        ((RelativeLayout) localObject3).addView(paramActivity.j, (ViewGroup.LayoutParams) localObject1);
        (paramString = new LinearLayout.LayoutParams(-1, cz.a(paramActivity.a, 33.5F))).topMargin = i2;
        ((LinearLayout) localObject2).addView((View) localObject3, paramString);
        (paramString = new TextView(paramActivity.a)).setTextSize(16.0F);
        paramString.setTextColor(-13421773);
        paramString.setText(a.a(b.as));
        (localObject1 = new LinearLayout.LayoutParams(-1, -1)).topMargin = i3;
        ((LinearLayout) localObject2).addView(paramString, (ViewGroup.LayoutParams) localObject1);
        paramActivity.i = new EditText(paramActivity.a);
        paramActivity.i.setSingleLine();
        paramActivity.i.setTextColor(-13421773);
        paramActivity.i.setPadding(paramn, paramn, paramn, paramn);
        paramActivity.i.setBackgroundDrawable(paramActivity.b.a("bg_edt.9.png"));
        (paramString = new LinearLayout.LayoutParams(-1, cz.a(paramActivity.a, 33.5F))).topMargin = i2;
        ((LinearLayout) localObject2).addView(paramActivity.i, paramString);
        (paramString = new TextView(paramActivity.a)).setTextColor(-7829368);
        paramString.setTextSize(12.0F);
        paramString.setText(a.a(b.aq));
        (paramn = new LinearLayout.LayoutParams(-1, -1)).topMargin = i2;
        ((LinearLayout) localObject2).addView(paramString, paramn);
        (paramString = new TextView(paramActivity.a)).setGravity(17);
        paramString.setTextSize(16.0F);
        paramString.setTextColor(-1);
        paramActivity.b.a(paramString, "btn_nor.9.png", "btn_press.9.png", "btn_nor.9.png");
        paramString.setText(a.a(b.au));
        paramString.setOnClickListener(new i(paramActivity));
        (paramn = new LinearLayout.LayoutParams(-1, cz.a(paramActivity.a, 40.5F))).topMargin = cz.a(paramActivity.a,
                20.0F);
        ((LinearLayout) localObject2).addView(paramString, paramn);
        (paramString = new ScrollView(paramActivity.a))
                .addView((View) localObject2, new ViewGroup.LayoutParams(-1, -1));
        localLinearLayout.addView(paramString, new LinearLayout.LayoutParams(-1, -1));
        paramActivity.d.addView(localLinearLayout, new RelativeLayout.LayoutParams(-1, -1));
    }

    private void c() {
        if (this.e == null)
            return;
        this.e.setVisibility(8);
    }

    public final void a() {
        if ((this.k != null) && (this.k.isShown())) {
            c();
            return;
        }
        this.c.b(aq.class.getName());
    }

    public final RelativeLayout b() {
        return this.d;
    }
}